Skip to content

Translate user-facing messages from Chinese to English#1

Merged
abien merged 3 commits intomainfrom
copilot/translate-notices-to-english
Jan 31, 2026
Merged

Translate user-facing messages from Chinese to English#1
abien merged 3 commits intomainfrom
copilot/translate-notices-to-english

Conversation

Copy link
Copy Markdown

Copilot AI commented Jan 31, 2026

User-facing toast notifications and AI prompt examples contained Chinese text, preventing non-Chinese speakers from understanding system feedback.

Changes

  • Toast notifications - Translated 4 messages in knowledge-extractor.ts and index.ts:

    • Knowledge extraction subsession creation
    • Manual extraction command hint
    • Session idle countdown
    • Extraction cancellation
  • AI system prompt - Translated example JSON in extraction prompt (invoice validation example used for format demonstration)

Example

// Before
message: "会话空闲,${debounceMs / 1000}秒后开始知识提取..."

// After  
message: `Session idle, knowledge extraction starting in ${debounceMs / 1000} seconds...`

All translations preserve original semantics.

Original prompt

The app contains several notices. messages or toasts in chinese instead of english. Lets make sure that we translate any user facing communication to english


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: abien <254409+abien@users.noreply.github.com>
Copilot AI changed the title [WIP] Translate user communications to English Translate user-facing messages from Chinese to English Jan 31, 2026
Copilot AI requested a review from abien January 31, 2026 09:34
Copy link
Copy Markdown
Owner

@abien abien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

everything else looks good

@@ -141,8 +141,8 @@ OUTPUT FORMAT:
"skill": {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets check if this "invoice" part is actually productive or if its leftovers from other codebase by accident

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Translates user-facing toast notifications and an AI prompt example from Chinese to English so non-Chinese speakers can understand runtime feedback and prompt guidance.

Changes:

  • Translated the extraction-cancellation toast in src/index.ts.
  • Translated multiple knowledge-extractor toasts in src/hooks/knowledge-extractor.ts (subsession creation, manual command hint, idle countdown).
  • Translated the example JSON content in the extraction system prompt.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/index.ts Translates the cancellation toast message to English.
src/hooks/knowledge-extractor.ts Translates extractor toasts and the prompt’s example JSON text to English.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@abien abien marked this pull request as ready for review January 31, 2026 09:49
@abien abien merged commit 0dd1677 into main Jan 31, 2026
6 checks passed
@abien abien deleted the copilot/translate-notices-to-english branch January 31, 2026 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants